﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Proggy.Web.Cms.ContentModel;
using Proggy.Web.Cms.Core.ContentModels;
using Proggy.Web.Cms.Core.Seo.Service.Entities;
using Newtonsoft.Json;
using Proggy.Web.Cms.Repositories.ContentModel;
using Proggy.Web.Cms.Repositories.Membership;

namespace Proggy.Web.Cms.ExampleDomain.ContentModels
{
    [ContentModel("Home page","~/Areas/Proggy/Content/Images/ContentModelIcons/home.png", true, false, "ProggyFileFolder,ProggyContainerRedirect,Blogs,StandardContentPage", "HomePage","Proggy.Web.Cms.ExampleDomain.Controllers") ]
    public class HomePageContentModel : ProggyCoreAddressableContentModelBase
    {
        #region constructors

        public HomePageContentModel(IContentModelTypeRepository cmRepo, IMembershipRepository membRepo) : base(cmRepo, membRepo) { }
        public HomePageContentModel() : base() { }

        #endregion

        #region Seo abstract overrides

        /// <summary>
        /// Site map change frequency
        /// </summary>
        [JsonIgnore]
        public override SiteMapChangeFrequencyEnum SiteMapChangeFrequency
        {
            get { return SiteMapChangeFrequencyEnum.Daily; }
        }

        /// <summary>
        /// Should appear on site map
        /// </summary>
        [JsonIgnore]
        public override SiteMapPriorityEnum SiteMapPriority
        {
            get { return SiteMapPriorityEnum.One; }
        }

        /// <summary>
        /// Should appear on site map
        /// </summary>
        [JsonIgnore]
        public override bool ContentShouldAppearOnSiteMap
        {
            get { return true; }
        }

        #endregion
    }
}
